<script setup lang="ts">
import { computed } from "vue";
const props = defineProps({
  url: {
    type: String,
    default: false,
    required: true,
  },
  size: {
    type: Number || String,
    default: 30,
  },
});
const styles = computed(() => {
  return {
    width: props.size + "px",
    height: props.size + "px",
  };
});
</script>

<template>
  <image :style="styles" model="widthFix" :src="props.url"></image>
</template>

<style lang=""></style>
